import Vue from 'vue'

export default Vue.filter(
  "timef",
  function(time) {
    var dt = new Date(time);
    var y = dt.getFullYear();
    var m = (dt.getMonth() + 1).toString().padStart(2, "0");
    var d = (dt.getDate()).toString().padStart(2, "0");
    return `${y}-${m}-${d}`;
  }
)